package cn.clq.ymcc.feign;

import cn.clq.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@FeignClient(value = "service-course",fallbackFactory = CoursePermissionFeignClientFallBackFactory.class)
public interface CoursePermissionFeignClient {
    @GetMapping("/courseUserLearn/{loginId}/{courseId}")
    JSONResult checkMediaPermission(@PathVariable("loginId")Long loginId, @PathVariable("courseId")Long courseId);

    @GetMapping("/course/info/{courseIds}")
    JSONResult searchCourseOrderInfo(@PathVariable("courseIds") String courseIds);
}
